<?php /* SVN: $Id: edit.ctp 717 2009-07-20 21:38:12Z boopathi_026ac09 $ */ ?>
<div class="userPermissionPreferences main-inner3  form">
<div class="container_24 clearfix space-top">
<div class="shodow-tl">
   <div class="shodow-tr">
    <div class="shodow-tm"> </div>
  </div>
</div>
<div class="shodow clearfix">
		<h2 class="project-title"><?php echo sprintf(__l('Edit Notification Settings - %s'), $this->request->data['User']['username']); ?></h2>
	<?php echo $this->element('user-avatar', array('config' => 'sec')); ?>

</div>
						<div class="shad-bg-lft clearfix">
							<div class="shad-bg-rgt">
								<div class="shad-bg">
<div class="main-section">
	
		<div class="main-section js-corner round-5 user-profile-form round-5">
		<div class="content-info clearfix"><?php echo __l('Notification settings for external emails');?></div>
				<div class="form-blocks  js-corner round-5">
			<?php echo $this->Form->create('UserPermissionPreference', array('action'=>'edit','class' => 'normal'));?>
				<?php echo $this->Form->input('UserPermissionPreference.id', array('type' => 'hidden')); ?>
				<?php echo $this->Form->input('UserPermissionPreference.user_id', array('type' => 'hidden')); ?>
   	      			<table class="list">
					<tr>
						<th class="dl"><?php echo __l('Action'); ?></th>
						<th><?php echo __l('My Projects'); ?></th>
						<th><?php echo __l('My Backed Projects'); ?></th>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
						<th><?php echo __l('My Following Projects'); ?></th>
					<?php endif; ?>
					<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
						<th><?php echo __l('Messages'); ?></th>
					<?php endif; ?>
					</tr>
					<tr>
						<td class="dl"><?php echo __l('Project updates posted'); ?></td>
						<td><?php echo __l('--'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.blog_mail_send_backers', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo $this->Form->input('UserPermissionPreference.blog_mail_send_followers', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<tr>
						<td class="dl"><?php echo __l('Project update comments posted'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_blog_comment_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_blog_comment_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo $this->Form->input('UserPermissionPreference.project_blog_comment_mail_send_follower', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
						<tr>
						<td class="dl"><?php echo __l('Project comments posted'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_comment_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_comment_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo $this->Form->input('UserPermissionPreference.project_comment_mail_send_follower', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<?php if (Configure::read('Project.is_enable_idea')): ?>
					<tr>
						<td class="dl"><?php echo __l('Project votings posted'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_rating_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_rating_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_rating_mail_send_follower', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<?php endif; ?>
					<tr>
						<td class="dl"><?php echo __l('Project closed notification'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_successfull_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_successfull_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo $this->Form->input('UserPermissionPreference.project_successfull_mail_send_follower', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<?php if (Configure::read('Project.is_enable_threshold_limit')): ?>
					<tr>
                    	<td class="dl"><?php echo __l('Project reserve amount reached notification'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_reserveamountreached_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_reserveamountreached_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo $this->Form->input('UserPermissionPreference.project_reserveamountreached_mail_send_follower', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<?php endif; ?>
					<tr>
						<td class="dl"><?php echo __l('Project goal reached notification'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_goalreached_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_goalreached_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo $this->Form->input('UserPermissionPreference.project_goalreached_mail_send_follower', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<tr>
						<td class="dl"><?php echo __l('Project expired notification'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_expired_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_expired_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo $this->Form->input('UserPermissionPreference.project_expired_mail_send_follower', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<tr>
						<td class="dl"><?php echo __l('Project cancelled notification'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_cancel_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_cancel_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo $this->Form->input('UserPermissionPreference.project_cancel_mail_send_follower', array('type' => 'checkbox','label' => false)); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<tr>
						<td class="dl"><?php echo __l('New fund notification'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.new_fund_notification_mail', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.new_fund_backer_notification_mail', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<tr>
						<td class="dl"><?php echo __l('Fund cancel notification'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.pledge_cancel_mail_send_owner', array('type' => 'checkbox','label' => false)); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.pledge_cancel_mail_send_backer', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<tr>
						<td class="dl"><?php echo __l('Project refund notification'); ?></td>
						<td><?php echo __l('--'); ?></td>
						<td><?php echo $this->Form->input('UserPermissionPreference.project_refund_notification_mail', array('type' => 'checkbox','label' => false)); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
						<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
					</tr>
					<?php if (Configure::read('messages.is_send_email_on_new_message')): ?>
					<tr>
						<td class="dl"><?php echo __l('Message inbox notification'); ?></td>
						<td><?php echo __l('--'); ?></td>
						<td><?php echo __l('--'); ?></td>
						<?php if (Configure::read('Project.is_project_follower_enabled')): ?>
							<td><?php echo __l('--'); ?></td>
						<?php endif; ?>
						<td><?php echo $this->Form->input('UserPermissionPreference.is_new_message_notification', array('type' => 'checkbox','label' => false)); ?></td>
					</tr>
					<?php endif; ?>
				</table>
				<?php echo $this->Form->end(__l('Update')); ?>
                <div class="clearfix">
			</div>
		</div>
	</div>
</div>
	</div>
							</div>
						</div>
						<div class="l-curve-bot">							
							<div class="r-curve-bot">
									<div class="bot-bg"></div>
							</div>
						</div>
</div>
</div>